using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Staff
{
    public interface IOperatorAppService
    {
        Task<OperatorDto> GetAsync(Guid id);
        Task<OperatorDto> FindAsync(string filter);
        Task<OperatorDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<OperatorDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<OperatorDto>> QueryAsync(FilterGroupRequestDto input);
        Task<OperatorDto> CreateAsync(OperatorCreateDto input);
        Task<OperatorDto> UpdateAsync(Guid id, OperatorUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}